package net.technics;

import net.models.Application;

import org.eclipse.core.databinding.observable.Realm;
import org.eclipse.jface.databinding.swt.SWTObservables;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CLabel;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.wb.swt.SWTResourceManager;

public class Accueil {

	protected Shell	shlSwtApplication;

	/**
	 * Launch the application.
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Accueil window = new Accueil();
			window.open();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Open the window.
	 */
	public void open() {
		Application.initTypesPraticien();
		Application.initPraticiens();
		Application.initMeds();
		Application.initFamilles();
		Application.initGroups();
		Application.initUsers();
		Application.initFicheFrais();
		Application.initFraisforfait();
		Application.initLignefraisforfait();
		Application.initEchantillons();
		Application.initRapportsVisites();
		Application.initPresentations();
		Application.initLignefraishorsforfait();
		Application.initEtat();
		Display display = Display.getDefault();
		createContents();
		shlSwtApplication.open();
		shlSwtApplication.layout();
		while (!shlSwtApplication.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

	/**
	 * Create contents of the window.
	 */
	protected void createContents() {
		shlSwtApplication = new Shell(Display.getDefault());
		shlSwtApplication.setSize(706, 411);
		shlSwtApplication.setText("Back Office Management");

		Composite CompMenu = new Composite(shlSwtApplication, SWT.NONE);
		CompMenu.setBounds(10, 10, 678, 282);

		Composite CompGestUser = new Composite(CompMenu, SWT.BORDER);
		CompGestUser.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseDown(MouseEvent e) {
				UtilisateurAjout ua = new UtilisateurAjout();
				ua.open();
			}
		});
		CompGestUser.setBounds(10, 10, 319, 127);
		CompGestUser.setToolTipText("");
		CompGestUser.setBackground(SWTResourceManager.getColor(SWT.COLOR_DARK_BLUE));

		CLabel lblUtilisateurs = new CLabel(CompGestUser, SWT.BORDER | SWT.CENTER);
		lblUtilisateurs.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseDown(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							UtilisateurAjout window = new UtilisateurAjout();
							window.open();
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}
				});
			}
		});
		lblUtilisateurs.setText("Ajouter un utilisateur");
		lblUtilisateurs.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblUtilisateurs.setBackground(SWTResourceManager.getColor(SWT.COLOR_DARK_BLUE));
		lblUtilisateurs.setBounds(53, 10, 186, 21);

		CLabel lblModifierUnUtilisateur = new CLabel(CompGestUser, SWT.BORDER | SWT.CENTER);
		lblModifierUnUtilisateur.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseDown(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							UtilisateurEditer window = new UtilisateurEditer();
							window.open();
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}
				});
			}
		});
		lblModifierUnUtilisateur.setText("Modifier un utilisateur");
		lblModifierUnUtilisateur.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblModifierUnUtilisateur.setBackground(SWTResourceManager.getColor(SWT.COLOR_DARK_BLUE));
		lblModifierUnUtilisateur.setBounds(53, 37, 186, 21);

		CLabel lblSupprimerUnUtilisateur = new CLabel(CompGestUser, SWT.BORDER | SWT.CENTER);
		lblSupprimerUnUtilisateur.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseDown(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							UtilisateurDelete window = new UtilisateurDelete();
							window.open();
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}
				});
			}
		});
		lblSupprimerUnUtilisateur.setText("Supprimer un utilisateur");
		lblSupprimerUnUtilisateur.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblSupprimerUnUtilisateur.setBackground(SWTResourceManager.getColor(SWT.COLOR_DARK_BLUE));
		lblSupprimerUnUtilisateur.setBounds(53, 64, 186, 21);

		CLabel lblGrerLesDroits = new CLabel(CompGestUser, SWT.BORDER | SWT.CENTER);
		lblGrerLesDroits.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseUp(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							GestionAdmin window = new GestionAdmin();
							window.open();
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}
				});
			}
		});
		lblGrerLesDroits.setText("Gérer les droits d'accès");
		lblGrerLesDroits.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblGrerLesDroits.setBackground(SWTResourceManager.getColor(SWT.COLOR_DARK_BLUE));
		lblGrerLesDroits.setBounds(53, 91, 186, 21);

		Composite CompGestFrais = new Composite(CompMenu, SWT.BORDER);

		CompGestFrais.setBounds(351, 10, 317, 127);
		CompGestFrais.setBackground(SWTResourceManager.getColor(SWT.COLOR_DARK_RED));

		CLabel lblGestionDesFrais = new CLabel(CompGestFrais, SWT.BORDER | SWT.CENTER);
		lblGestionDesFrais.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseDown(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							FicheVisiteEditer window = new FicheVisiteEditer();
							window.open();
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}
				});
			}
		});
		lblGestionDesFrais.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblGestionDesFrais.setBackground(SWTResourceManager.getColor(SWT.COLOR_DARK_RED));
		lblGestionDesFrais.setText("Fiches de visite");
		lblGestionDesFrais.setBounds(44, 10, 186, 21);

		CLabel lblFraisForfaitaires = new CLabel(CompGestFrais, SWT.BORDER | SWT.CENTER);
		lblFraisForfaitaires.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseDown(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							FraisForfaitEditer window = new FraisForfaitEditer();
							window.open();
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}
				});
			}
		});
		lblFraisForfaitaires.setText("Frais forfaitaires");
		lblFraisForfaitaires.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblFraisForfaitaires.setBackground(SWTResourceManager.getColor(SWT.COLOR_DARK_RED));
		lblFraisForfaitaires.setBounds(44, 37, 186, 21);

		CLabel lblStatutsDesFiches = new CLabel(CompGestFrais, SWT.BORDER | SWT.CENTER);
		lblStatutsDesFiches.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseUp(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							FraisForfaitStatut window = new FraisForfaitStatut();
							window.open();
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}
				});
			}
		});
		lblStatutsDesFiches.setText("Statuts des fiches");
		lblStatutsDesFiches.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblStatutsDesFiches.setBackground(SWTResourceManager.getColor(SWT.COLOR_DARK_RED));
		lblStatutsDesFiches.setBounds(44, 64, 186, 21);

		Composite CompInfos = new Composite(CompMenu, SWT.BORDER);
		CompInfos.setBounds(351, 143, 317, 127);
		CompInfos.setBackground(SWTResourceManager.getColor(204, 102, 0));

		CLabel label_5 = new CLabel(CompInfos, SWT.BORDER | SWT.CENTER);
		label_5.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseDown(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							MesInformations window = new MesInformations();
							window.open();
						} catch (Exception e) {
							e.printStackTrace();
						}
					}
				});
			}
		});
		label_5.setText("Mes informations");
		label_5.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		label_5.setBackground(SWTResourceManager.getColor(204, 102, 0));
		label_5.setBounds(50, 92, 186, 21);

		CLabel lblSupprimerUnMdicament = new CLabel(CompInfos, SWT.BORDER | SWT.CENTER);
		lblSupprimerUnMdicament.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseUp(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							MedicamentSupprimer window = new MedicamentSupprimer();
							window.open();
						} catch (Exception e) {
							e.printStackTrace();
						}
					}
				});
			}
		});
		lblSupprimerUnMdicament.setText("Supprimer un médicament");
		lblSupprimerUnMdicament.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblSupprimerUnMdicament.setBackground(SWTResourceManager.getColor(204, 102, 0));
		lblSupprimerUnMdicament.setBounds(50, 65, 186, 21);

		CLabel lblAjouterUnMdicament = new CLabel(CompInfos, SWT.BORDER | SWT.CENTER);
		lblAjouterUnMdicament.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseUp(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							MedicamentAjout window = new MedicamentAjout();
							window.open();
						} catch (Exception e) {
							e.printStackTrace();
						}
					}
				});
			}
		});
		lblAjouterUnMdicament.setText("Ajouter un médicament");
		lblAjouterUnMdicament.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblAjouterUnMdicament.setBackground(SWTResourceManager.getColor(204, 102, 0));
		lblAjouterUnMdicament.setBounds(50, 10, 186, 21);

		CLabel lblModifierUnMdicament = new CLabel(CompInfos, SWT.BORDER | SWT.CENTER);
		lblModifierUnMdicament.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseUp(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							MedicamentEditer window = new MedicamentEditer();
							window.open();
						} catch (Exception e) {
							e.printStackTrace();
						}
					}
				});
			}
		});
		lblModifierUnMdicament.setText("Modifier un médicament");
		lblModifierUnMdicament.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblModifierUnMdicament.setBackground(SWTResourceManager.getColor(204, 102, 0));
		lblModifierUnMdicament.setBounds(50, 38, 186, 21);

		Composite CompGestCR = new Composite(CompMenu, SWT.BORDER);

		CompGestCR.setBounds(10, 143, 319, 127);
		CompGestCR.setBackground(SWTResourceManager.getColor(102, 153, 0));

		CLabel lblGestionDesCompterendus = new CLabel(CompGestCR, SWT.BORDER | SWT.CENTER);
		lblGestionDesCompterendus.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseDown(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							CompteRenduEditer window = new CompteRenduEditer();
							window.open();
						} catch (Exception e) {
							e.printStackTrace();
						}
					}
				});
			}
		});
		lblGestionDesCompterendus.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblGestionDesCompterendus.setBackground(SWTResourceManager.getColor(102, 153, 0));
		lblGestionDesCompterendus.setText("Compte-rendus de visite");
		lblGestionDesCompterendus.setBounds(58, 10, 186, 21);

		CLabel lblModifierUnPraticien = new CLabel(CompGestCR, SWT.BORDER | SWT.CENTER);
		lblModifierUnPraticien.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseDown(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							PraticienEditer window = new PraticienEditer();
							window.open();
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}
				});
			}
		});
		lblModifierUnPraticien.setText("Modifier un praticien");
		lblModifierUnPraticien.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblModifierUnPraticien.setBackground(SWTResourceManager.getColor(102, 153, 0));
		lblModifierUnPraticien.setBounds(58, 65, 186, 21);

		CLabel lblSupprimerUnPraticien = new CLabel(CompGestCR, SWT.BORDER | SWT.CENTER);
		lblSupprimerUnPraticien.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseUp(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							PraticienSupprimer window = new PraticienSupprimer();
							window.open();
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}
				});
			}
		});
		lblSupprimerUnPraticien.setText("Supprimer un praticien");
		lblSupprimerUnPraticien.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblSupprimerUnPraticien.setBackground(SWTResourceManager.getColor(102, 153, 0));
		lblSupprimerUnPraticien.setBounds(58, 92, 186, 21);

		CLabel lblAjouterUnPraticien_1 = new CLabel(CompGestCR, SWT.BORDER | SWT.CENTER);
		lblAjouterUnPraticien_1.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseDown(MouseEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							PraticienAjout window = new PraticienAjout();
							window.open();
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}
				});
			}
		});
		lblAjouterUnPraticien_1.setText("Ajouter un praticien");
		lblAjouterUnPraticien_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblAjouterUnPraticien_1.setBackground(SWTResourceManager.getColor(102, 153, 0));
		lblAjouterUnPraticien_1.setBounds(58, 37, 186, 21);

		Composite composite_4 = new Composite(shlSwtApplication, SWT.NONE);
		composite_4.setBounds(565, 298, 123, 44);

		Button btnQuitter = new Button(composite_4, SWT.NONE);
		btnQuitter.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				System.exit(0);
			}
		});
		btnQuitter.setBounds(10, 10, 103, 25);
		btnQuitter.setText("Déconnexion");

		Menu menu = new Menu(shlSwtApplication, SWT.BAR);
		shlSwtApplication.setMenuBar(menu);

		MenuItem mntmGestionDesUtilisateurs_1 = new MenuItem(menu, SWT.CASCADE);
		mntmGestionDesUtilisateurs_1.setText("Gestion des utilisateurs");

		Menu menu_1 = new Menu(mntmGestionDesUtilisateurs_1);
		mntmGestionDesUtilisateurs_1.setMenu(menu_1);

		MenuItem mntmUtilisateurs = new MenuItem(menu_1, SWT.CASCADE);
		mntmUtilisateurs.setText("Utilisateurs");

		Menu menu_4 = new Menu(mntmUtilisateurs);
		mntmUtilisateurs.setMenu(menu_4);

		MenuItem mntmAjouter = new MenuItem(menu_4, SWT.NONE);
		mntmAjouter.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							UtilisateurAjout utilisateurajouts = new UtilisateurAjout();
							utilisateurajouts.open();
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}
				});
			}
		});
		mntmAjouter.setText("Ajouter");

		MenuItem mntmModifier = new MenuItem(menu_4, SWT.NONE);
		mntmModifier.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							UtilisateurEditer utilisateurediter = new UtilisateurEditer();
							utilisateurediter.open();
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}
				});
			}
		});
		mntmModifier.setText("Modifier");

		MenuItem mntmSupprimer = new MenuItem(menu_4, SWT.NONE);
		mntmSupprimer.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							UtilisateurDelete utilisateurSupprimer = new UtilisateurDelete();
							utilisateurSupprimer.open();
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}
				});
			}
		});
		mntmSupprimer.setText("Supprimer");

		MenuItem mntmGestionDesFrais = new MenuItem(menu, SWT.CASCADE);
		mntmGestionDesFrais.setText("Gestion des frais");

		Menu menu_2 = new Menu(mntmGestionDesFrais);
		mntmGestionDesFrais.setMenu(menu_2);

		MenuItem mntmNewItem_1 = new MenuItem(menu_2, SWT.NONE);
		mntmNewItem_1.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				try {
					FicheVisiteEditer ficheVisiteEditer = new FicheVisiteEditer();
					ficheVisiteEditer.open();
				} catch (Exception e1) {
					e1.printStackTrace();
				}
			}
		});
		mntmNewItem_1.setText("Fiche de visite");

		MenuItem mntmFraisForfaitaire_1 = new MenuItem(menu_2, SWT.CASCADE);
		mntmFraisForfaitaire_1.setText("Frais forfaitaire");

		Menu menu_5 = new Menu(mntmFraisForfaitaire_1);
		mntmFraisForfaitaire_1.setMenu(menu_5);

		MenuItem mntmModifier_1 = new MenuItem(menu_5, SWT.NONE);
		mntmModifier_1.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							FraisForfaitEditer window = new FraisForfaitEditer();
							window.open();
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}
				});
			}
		});
		mntmModifier_1.setText("Modifier");

		MenuItem mntmStatutDesFiches = new MenuItem(menu_2, SWT.NONE);
		mntmStatutDesFiches.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				try {
					FraisForfaitStatut window = new FraisForfaitStatut();
					window.open();
				} catch (Exception e1) {
					e1.printStackTrace();
				}
			}
		});
		mntmStatutDesFiches.setText("Statut des fiches");

		MenuItem mntmGestionDesCompterendu = new MenuItem(menu, SWT.CASCADE);
		mntmGestionDesCompterendu.setText("Gestion des compte-rendus");

		Menu menu_3 = new Menu(mntmGestionDesCompterendu);
		mntmGestionDesCompterendu.setMenu(menu_3);

		MenuItem mntmCompterendusDeVisite = new MenuItem(menu_3, SWT.NONE);
		mntmCompterendusDeVisite.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				try {
					CompteRenduEditer window = new CompteRenduEditer();
					window.open();
				} catch (Exception e2) {
					e2.printStackTrace();
				}
			}
		});
		mntmCompterendusDeVisite.setText("Compte-rendus de visite");

		MenuItem mntmGestionDesPraticiens = new MenuItem(menu_3, SWT.NONE);
		mntmGestionDesPraticiens.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							PraticienEditer window = new PraticienEditer();
							window.open();
						} catch (Exception e) {
							e.printStackTrace();
						}
					}
				});
			}
		});
		mntmGestionDesPraticiens.setText("Gestion des praticiens");

		MenuItem mntmGestionDesMdicaments = new MenuItem(menu, SWT.CASCADE);
		mntmGestionDesMdicaments.setText("Gestion des médicaments");

		Menu menu_6 = new Menu(mntmGestionDesMdicaments);
		mntmGestionDesMdicaments.setMenu(menu_6);

		MenuItem mntmAjouter_1 = new MenuItem(menu_6, SWT.NONE);
		mntmAjouter_1.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							MedicamentAjout window = new MedicamentAjout();
							window.open();
						} catch (Exception e) {
							e.printStackTrace();
						}
					}
				});
			}
		});
		mntmAjouter_1.setText("Ajouter");

		MenuItem mntmModifier_2 = new MenuItem(menu_6, SWT.NONE);
		mntmModifier_2.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							MedicamentEditer window = new MedicamentEditer();
							window.open();
						} catch (Exception e) {
							e.printStackTrace();
						}
					}
				});
			}
		});
		mntmModifier_2.setText("Modifier");

		MenuItem mntmSupprimer_1 = new MenuItem(menu_6, SWT.NONE);
		mntmSupprimer_1.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				Realm.runWithDefault(SWTObservables.getRealm(Display.getDefault()), new Runnable() {
					public void run() {
						try {
							MedicamentSupprimer window = new MedicamentSupprimer();
							window.open();
						} catch (Exception e) {
							e.printStackTrace();
						}
					}
				});
			}
		});
		mntmSupprimer_1.setText("Supprimer");
	}
}
